<template>
  <div class="first">
    <div class="first-left">
      <ul>
        <li :key="item.id" v-for="item in  arr">
          <router-link :to="item.path">{{ item.name }}</router-link>
        </li>
      </ul>
    </div>
    <div class="first-right">
      <router-view></router-view>
    </div>
  </div>
</template>
<script>
export default {
  name: '',
  data () {
    return {
      arr: [
        {
          id: 1,
          path: '/monday',
          name: '星期一'
        },
        {
          id: 2,
          path: '/tuesday',
          name: '星期二'
        },
        {
          id: 3,
          path: '/wednesday',
          name: '星期三'
        }
      ]
    }
  },
  created () {
  },
  computed: {
  },
  methods: {
  }
}
</script>
<style lang='less'  scoped>
.first {
  display: flex;
  height: 100%;
  .first-left {
    width: 200px;
    height: 100%;
    background-color: yellow;
    ul {
      li {
        height: 30px;
        text-align: center;
        line-height: 30px;
        margin: 20px 0;
        border-bottom: 1px solid #ccc;
      }
    }
  }
  .first-right {
    flex: 1;
    background-color: green;
  }
}
</style>